<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  <link rel="stylesheet" type="text/css" href="{{_res_path}}/common/common.css"/>
  <link rel="stylesheet" type="text/css" href="{{_res_path}}/html/redis/redis.css"/>
</head>
<body {{sys.scale}}>
<div class="container">
  <div class="redis-info">
    <div class="header">Redis 状态 PRO</div>
    <div class="stats">
      <div><span>已运行天数:</span> {{stats.uptime_in_days}} days</div>
      <div><span>当前监听端口:</span> {{stats.tcp_port}}</div>
      <div><span>连接的客户端数量:</span> {{stats.connected_clients}}</div>
      <div><span>向操作系统申请的内存大小:</span> {{(stats.used_memory_rss / 1024 / 1024).toFixed(2)}} MB</div>
      <div><span>当前 Redis 使用的内存大小:</span> {{(stats.used_memory / 1024 / 1024).toFixed(2)}} MB</div>
      <div><span>Redis 的内存消耗峰值:</span> {{(stats.used_memory_peak / 1024 / 1024).toFixed(2)}} MB</div>
      <div><span>Redis 实例的内存碎片化情况:</span> {{stats.mem_fragmentation_ratio}}</div>
      <div><span>运行以来连接过的客户端的总数量:</span> {{stats.total_connections_received}}</div>
      <div><span>运行以来执行过的命令的总数量:</span> {{stats.total_commands_processed}}</div>
      <div><span>服务器每秒钟执行的命令数量:</span> {{stats.instantaneous_ops_per_sec}}</div>
      <div><span>查找数据库键命中率:</span> {{hitRate}}%</div>
    </div>
    <div class="db-stats">
      <div class="subtitle">数据库统计信息</div>
      {{@dbStats}}
    </div>
    <div class="footer">{{@copyright}}</div>
  </div>
</div>
</body>
</html>